<?php

namespace Admin\Controller;
class OpenlogController extends BaseController {
    public function log(){
    	$Log = M('open_door_log');
    	$p = I('p',1);
    	$logs = $Log->order('add_time DESC')->page($p.',20')->select();
    	$this->assign('list',$logs);
    	$count = $Log->where('1=1')->count();
    	$Page = new \Think\Page($count,20);
    	$show = $Page->show();
    	$this->assign('page',$show); 	
    	$this->display();
    }



}